package com.dianping.cat.consumer.cross.model.transform;

import com.dianping.cat.consumer.cross.model.IVisitor;
import com.dianping.cat.consumer.cross.model.entity.CrossReport;
import com.dianping.cat.consumer.cross.model.entity.Local;
import com.dianping.cat.consumer.cross.model.entity.Name;
import com.dianping.cat.consumer.cross.model.entity.Remote;
import com.dianping.cat.consumer.cross.model.entity.Type;

public abstract class BaseVisitor
  implements IVisitor {
  public void visitCrossReport(CrossReport crossReport) {
/* 13 */     for (Local local : crossReport.getLocals().values()) {
/* 14 */       visitLocal(local);
    }
  }


  public void visitLocal(Local local) {
/* 20 */     for (Remote remote : local.getRemotes().values()) {
/* 21 */       visitRemote(remote);
    }
  }



  public void visitName(Name name) {}


  public void visitRemote(Remote remote) {
/* 31 */     if (remote.getType() != null) {
/* 32 */       visitType(remote.getType());
    }
  }


  public void visitType(Type type) {
/* 38 */     for (Name name : type.getNames().values())
/* 39 */       visitName(name); 
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/cross/model/transform/BaseVisitor.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */